<%@page import="com.zzti.pojo.Employee"%>
<%@page import="com.zzti.dao.EmployeeDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改员工信息</title>
</head>
<body>
	<%
		int a = Integer.parseInt(request.getParameter("id"));
		EmployeeDao employeeDao = new EmployeeDao();
		Employee employee = employeeDao.selectById(a);
	%>
	<form action="UpdateEmployeeServlet" method="get">
		<input type="hidden" value="<%=employee.getId()%>" name="id">
		员工姓名:<input type="text" value="<%=employee.getName()%>" name="name">
		员工性别:<input type="text" value="<%=employee.getSex()%>" name="sex"></br>
		员工年龄:<input type="text" value="<%=employee.getAge()%>" name="age">
		所属部门:<input type="text" value="<%=employee.getDepartment()%>"name="department"></br> 
		所在职务:<input type="text"value="<%=employee.getType()%>" name="type">
		工龄:<input type="text" value="<%=employee.getYear()%>" name="year"></br> 
		<input type="submit" value="提交">
	</form>
</body>
</html>